import request from '@/utils/request'

// 查询返还列表
export function listReturnQuery(query) {
  return request({
    url: '/fund/returnQuery/list',
    method: 'get',
    params: query
  })
}

// 查询返还详细
export function getReturnQuery(returnId) {
  return request({
    url: '/fund/returnQuery/' + returnId,
    method: 'get'
  })
}

// 新增返还
export function addReturnQuery(data) {
  return request({
    url: '/fund/returnQuery',
    method: 'post',
    data: data
  })
}

// 修改返还
export function updateReturnQuery(data) {
  return request({
    url: '/fund/returnQuery',
    method: 'put',
    data: data
  })
}

// 删除返还
export function delReturnQuery(returnId) {
  return request({
    url: '/fund/returnQuery/' + returnId,
    method: 'delete'
  })
}

export function getNote(costId) {
  return request({
    url:'/fund/returnQuery/getNote/'+costId,
    method:'get'
  })
}
